using System;
using System.Collections;
using System.Collections.Generic;

using ImPM.Data.Base;

namespace ImPM.Data.BusinessObjects
{
    public partial class Resource : BusinessBase<int>
    {
        #region Declarations

		
		private string _resourceName = String.Empty;
		
		
		
        #endregion

        #region Constructors

        public Resource() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_resourceName);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual string ResourceName
        {
            get { return _resourceName; }
			set
			{
				OnResourceNameChanging();
				_resourceName = value;
				OnResourceNameChanged();
			}
        }
		partial void OnResourceNameChanging();
		partial void OnResourceNameChanged();
		
        #endregion
    }
}
